Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

edit a doc from a notesdocumentcollection
~Yentl Opresaskiakol 01/22/2004 08:15 AM
Applications Development 6.0.2 CF2 Windows NT

I have a main document (opened in the UI), with a button on it. The button puts all the document's response docs into a NotesDocumentCollection using "Set dc = thisdoc.Responses"
I want to check if we have a response doc based on a particular form, and: if it exists, open it in the UI, and if it doesn't exist, create it and let the user fill in stuff.

So far I can cycle through the (6) response docs and get a handle on the correct (background) one using this code:

Set doc = dc.GetFirstDocument
While Not (doc Is Nothing)
If doc.form(0) = "CheckMTNewProduct" Then
MsgBox("Found it!")

So my question is: how can i open this doc for my users to edit?
I've done this:
unid = doc.UniversalID
but now sure what to to with it...:-)

Any suggestions / code snippets?

Go back